<?php
/**
 * +----------------------------------------------------------------------
 * | Copyright © Sogu Technologies Co. Ltd 2018-2050 All rights reserved.
 * +----------------------------------------------------------------------
 * | File name: SamLog.php
 * +----------------------------------------------------------------------
 * | Author: sam
 * +----------------------------------------------------------------------
 * | Description: 用于详细说明此程序文件完成的主要功能，与其他模块或函数的接口、输出值、取值范围、含义及参数间的控制、顺序或依赖等关系。
 * +----------------------------------------------------------------------
 * | Others: 其他内容的说明
 * +----------------------------------------------------------------------
 * | History: 修改历史记录列表，每条修改记录应包含修改日期、修改者及修改内容简述
 * +----------------------------------------------------------------------
 * | 1.Date: 2019-02-27 Author: sam Modification: 创建
 * +----------------------------------------------------------------------
 */

namespace App\Library\Tools;


use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Log;

class SamLog
{
    public function debug($message)
    {
//        if(in_array(App::environment(),['Pre','local'])){
//            Log::channel('loanRequest')->debug(App::environment().'环境：'.$message);
//        }else{
//            Log::debug($message);
//        }
        Log::channel('loanRequest')->debug(App::environment().'环境：'.$message);
    }
}